#pragma once
class CRole;
struct tagRoleInfor;
class CRoleMgr
{
public:
	CRoleMgr(void);
	static CRoleMgr& Inst();
	DWORD	RegisterHandleMsgFunc();
	void	Update();
	DWORD	RoleLogin(LPVOID pMsg);
	DWORD	AddRole(CRole* pRole);
	DWORD	DeleteRole(CRole* pRole);
	~CRoleMgr(void);
private:
	map<DWORD, CRole*> m_mapRole;
	map<DWORD, tagRoleInfor*> m_mapRoleInfor;
};
